package com.fast.admin.domain.system;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fast.framework.core.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 任务提醒信息表
 * </p>
 *
 * @author lanyuankeji
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_reminders")
@ApiModel(value="Reminders对象", description="任务提醒信息表")
public class Reminders  extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "任务提醒ID")
    @TableId("reminder_id")
    private String reminderId;

    @ApiModelProperty(value = "任务ID")
    @TableField("task_id")
    private String taskId;

    @ApiModelProperty(value = "提醒时间")
    @TableField("remind_at")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date remindAt;

    @ApiModelProperty(value = "提醒方式")
    private String method;
}
